﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Dynamic;
using Common;
using DAL;
using Model;
namespace UI.system.page.config
{
    public partial class display : BaseAdmin
    {
        public AdminInfo info = new AdminInfo();
        public List<TagsInfo> tagslist = new List<TagsInfo>();
        public List<NewsTypeInfo> newstypelist = new List<NewsTypeInfo>();
        public string[] menu1 = { };
        public string[] menu2 = { };
        public string[] menu3 = { };
        public string[] menu4 = { };
        public string[] menu5 = { };
        public string[] menu6 = { };
        public string[] menu7 = { };
        public string[] menu8 = { };
        public string[] we1 = { };
        public string[] we2 = { };
        public string[] we3 = { };
        public string[] we4 = { };
        public string[] we5 = { };
        public string[] we6 = { };
        public string[] we7 = { };
        public string[] notice = { };
        public string[] intro = { };
        public string[] cult = { };
        public string[] environment = { };
        public string[] honor = { };
        protected void Page_Load(object sender, EventArgs e)
        {
            info = AdminDAL.FindOneByID(1);
            tagslist = TagsDAL.FindAll(B.MyAdmin.ID);
            menu1 = info.Menu1.Split('&');
            menu2 = info.Menu2.Split('&');
            menu3 = info.Menu3.Split('&');
            menu4 = info.Menu4.Split('&');
            menu5 = info.Menu5.Split('&');
            menu6 = info.Menu6.Split('&');
            menu7 = info.Menu7.Split('&');
            menu8 = info.Menu8.Split('&');

            we1 = info.We1.Split('&');
            we2 = info.We2.Split('&');
            we3 = info.We3.Split('&');
            we4 = info.We4.Split('&');
            we5 = info.We5.Split('&');
            we6 = info.We6.Split('&');
            we7 = info.We7.Split('&');

            notice = info.Notice.Split('&');
            intro = info.Intro.Split('&');
            cult = info.Cult.Split('&');
            environment = info.Environment.Split('&');
            honor = info.Honor.Split('&');

            newstypelist = NewsTypeDAL.FindListByIDs(notice[3]);
        }
        
    }
}